# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-flaky
pkgver=3.7.0
pkgrel=4
pkgdesc="Plugin for nose or pytest that automatically reruns flaky tests"
url="https://github.com/box/flaky"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
checkdepends="
	py3-genty
	py3-mock
	py3-nose
	py3-pytest
	"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/f/flaky/flaky-$pkgver.tar.gz"
options="!check" # Broken
builddir="$srcdir/flaky-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
b399f6e1323d6ca341803ac6f1eb318bf24dc37182d0b49b89bb81b9466dd36271ad6dbb9f48ea6fa4760ee631f1482bb6f49c64f4d4520c40634089c1b64f9a  flaky-3.7.0.tar.gz
"
